﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WF_QLThuVien.Entities.PhieuMuon;
using WF_QLThuVien.Utilities;
using WF_QLThuVien.Entities;
using WF_QLThuVien.DataLayer.PhieuMuon;

namespace WF_QLThuVien.BusinessLayer.PhieuMuon
{
    public class CBLL_PhieuMuon
    {
        CDAL_PhieuMuon dalPM = new CDAL_PhieuMuon();
        CDAL_CTPhieuMuon dalCTPM = new CDAL_CTPhieuMuon();

        public bool LapPhieuMuon(CPhieuMuon pm)
        {
            try
            {
                dalPM.Insert(pm);
                return true;
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }
        }

        public bool GiaHan(string docgiaID, string sachID)
        {

            return true;
        }
    }
}
